package com.ad.pet.common.data;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by z on.
 * Des:
 * Date: 2017/7/3
 */

public abstract class BaseMultiItemAdapter<T extends MultiItemEntity>
        extends BaseMultiItemQuickAdapter<T, BaseViewHolder> {


    public BaseMultiItemAdapter(List<T> data) {
        super(data);
    }

    public T get(int position) {
        return mData.get(position);
    }

    public void setData(List<T> data) {
        mData = data;
    }
}
